Defines a column of data within a data_table object.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | m_name |
A header, or column name. |
Appends one value, initializing an unallocated column if needed. Discard existing views before this operation.
Appends a scalar of the column's type; strings also accept character.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(inout) | :: | this | |||
| class(*), | intent(in) | :: | x |
Copies the contents of the column to an array.
Defines a mechanism to retrieve a copy of an array. The destination must match the column's type and count. An unallocated column is treated as empty.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(in) | :: | this |
The data_column object. |
||
| class(*), | intent(inout), | dimension(:) | :: | dest |
The destination array, overwritten in full on success. |
Gets the number of items stored in the column.
Defines an integer property query on a data_column object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(in) | :: | this |
The data_column object. |
The property value.
Gets the data type stored by the column:
FS_COLUMN_INTEGER
FS_COLUMN_REAL
FS_COLUMN_LOGICAL
FS_COLUMN_STRING
Defines an integer property query on a data_column object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(in) | :: | this |
The data_column object. |
The property value.
Gets the name associated with the column.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(in) | :: | this |
The data_column object. |
The name.
Inserts one value before row, in the range 1 through count() + 1. Discard existing views before this operation.
Inserts a scalar of the column's type; strings also accept character.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(inout) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | row | |||
| class(*), | intent(in) | :: | x |
Removes one row, in the range 1 through count(). Discard existing views before this operation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(inout) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | row |
Sets the name associated with the column.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(inout) | :: | this |
The data_column object. |
||
| character(len=*), | intent(in) | :: | x |
The name. |
Borrows a mutable array pointer to a slice of the column without copying the column. The actual column must have TARGET or be an associated pointer. The caller must not deallocate the returned pointer. Reallocation of the array or destruction of the column invalidates the view; discard it before either operation and reacquire afterward.
Returns a borrowed, mutable slice of this column's array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(inout), | target | :: | this |
The data_column object. |
|
| integer(kind=int32), | intent(in) | :: | first |
The one-based starting index of the slice. |
||
| integer(kind=int32), | intent(in) | :: | last |
The one-based ending index of the slice. |
The array pointer, or null if unallocated.
Converts the requested value to a string.
Returns the value in the requested row as a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(in) | :: | this |
The data_column object. |
||
| integer(kind=int32), | intent(in) | :: | row |
The row index. |
||
| character(len=*), | intent(in), | optional | :: | fmt |
The formatting string. |
The resulting string.
Borrows a mutable array pointer without copying the column. The actual column must have TARGET or be an associated pointer. The caller must not deallocate the returned pointer. Reallocation of the array or destruction of the column invalidates the view; discard it before either operation and reacquire afterward.
Returns a borrowed pointer to the column's array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(inout), | target | :: | this |
The data_column object that owns the array. |
The mutable view, or null if the array is unallocated.